<%--
  Created by IntelliJ IDEA.
  User: YanJun
  Date: 2016/7/4
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link href="../bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="../bootstrap-table/dist/bootstrap-table.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="../bootstrap/js/jquery.js"></script>
    <script type="text/javascript" src="../bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript" src="../bootstrap-table/dist/bootstrap-table.js"></script>
</head>
<body class="home-body">
<jsp:include page="toolbar.jsp"/>
<div class="container" style="margin-top: 100px" >
    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-8">
            <form class="form-horizontal" action="/jira/report.action?method=generateReleaseNoteReport" method="post">
                <div class="form-group">
                    <label class="col-sm-4 control-label">Project Version</label>
                    <div class="col-sm-6">
                        <select class="form-control" id="projectVersion" name="projectVersion">
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-4 col-sm-6">
                        <input type="checkbox" name="prepareTar"> Prepare TAR Files
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-4 col-sm-6">
                        <button type="submit" class="btn btn-default">Generate</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-md-2"></div>
    </div>

</div>
<script>
    $(function(){
        $.ajax({
            type: 'post',
            url: '/jira/report.action?method=prepareFixVersions',
            success : function(data){
                $('#projectVersion').append(data);
            }
        });

    });

</script>
</body>
</html>
